<?php
   include  'base.php';


//    字段
$pagenum = $_GET['pagenum'];
$pagesize = $_GET['pagesize'];
// $start = ($pagenum - 1) * $pagesize;

$sql = "SELECT * FROM `index_swiper` LIMIT $pagenum,$pagesize";

$res = $conn -> query($sql);
$arr =Array();

while ($row = mysqli_fetch_assoc($res)){
    array_push($arr,$row);
}

echo json_encode($arr);






?>